package org.alanlau.hystrix.controller;

import org.alanlau.hystrix.feign.TestClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author alan
 * @version 1.0
 * @date 2020/9/17 0:00
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestClient testClient;

    @GetMapping("/hello")
    public String hello() {
        return testClient.hello();
    }
}
